package net.sk.china.city.talk.service.user;

import com.baomidou.mybatisplus.extension.service.IService;
import net.sk.china.city.talk.model.user.UserTag;
import net.sk.china.city.talk.request.user.UserTagRequest;
import net.sk.china.common.request.PageParamRequest;

import java.util.List;

/**
 * UserTagService 接口 用户标签
 * +----------------------------------------------------------------------
 * // | Talk To [ 聊来改善地区金融服务环境，助力企业发展 ]
 * // +----------------------------------------------------------------------
 * // | Copyright (c) 2018-2024 聊来 All rights reserved.
 * // +----------------------------------------------------------------------
 * // | Licensed ( <a href="http://www.apache.org/licenses/LICENSE-2.0">apache</a> )
 * // +----------------------------------------------------------------------
 * // | @Author: 聊来 <18970881148@qq.com>
 * // +----------------------------------------------------------------------
 * // | DateTime: 2024/6/3 17:04
 * // +----------------------------------------------------------------------
 */
public interface UserTagService extends IService<UserTag> {

    /**
     * 用户标签列表
     * @param pageParamRequest 分页参数
     * @return List<UserTag>
     */
    List<UserTag> getList(PageParamRequest pageParamRequest);

    /**
     * 新增用户标签
     * @param userTagRequest 标签参数
     * @return Boolean
     */
    Boolean create(UserTagRequest userTagRequest);

    /**
     * 删除用户标签
     * @param id 标签id
     * @return Boolean
     */
    Boolean delete(Integer id);

    /**
     * 修改用户标签
     * @param id 标签id
     * @param userTagRequest 标签参数
     * @return Boolean
     */
    Boolean updateTag(Integer id, UserTagRequest userTagRequest);

    /**
     * 根据标签组ID获取标签组名称
     * @param tagIdValue 分组ID
     * @return String
     */
    String getTagNameInId(String tagIdValue);
}
